The Transpose
Introduction
The transpose of a matrix is one of the simplest and most useful operations in linear algebra.
If you already know the basics of matrices—entries, rows, columns, and simple operations—then you’re ready for this article.
In short:
- The transpose flips a matrix across its main diagonal.
- Rows become columns.
- Columns become rows.
This operation appears everywhere: solving systems, defining inner products, working with transformations, and more.
What Is the Transpose?
The transpose of a matrix $A$ is written as $A^T$.
To compute it:
- Take each row of $A$.
- Turn it into a column in the same order.
Example: $$A = \begin{bmatrix} 1 & 4 \\ 2 & 5 \\ 3 & 6 \end{bmatrix} \quad\Rightarrow\quad A^T = \begin{bmatrix} 1 & 2 & 3 \\ 4 & 5 & 6 \end{bmatrix}$$ Key ideas:
- $A$ is $3 \times 2$
- $A^T$ is $2 \times 3$
- Shape always flips.
Why the Transpose Matters
The transpose is important because it:
- Converts between row and column viewpoints.
- Helps define symmetric matrices ($A = A^T$).
- Appears in formulas for projections and least squares.
- Lets us rewrite expressions in cleaner ways.
Some simple but powerful facts:
- $(A^T)^T = A$
- $(A + B)^T = A^T + B^T$
- $(cA)^T = cA^T$ for any number $c$
- $(AB)^T = B^T A^T$ (note the reversed order!)
These properties make the transpose behave nicely with other matrix operations.
Working Through Examples
Example 1: Transposing a Small Matrix
Let $$A = \begin{bmatrix} 2 & -1 \\ 7 & 4 \end{bmatrix}.$$ Then $$A^T = \begin{bmatrix} 2 & 7 \\ -1 & 4 \end{bmatrix}.$$
Example 2: Rectangular Matrix
Let $$B = \begin{bmatrix} 3 & 0 & 5 \\ -2 & 1 & 4 \end{bmatrix}.$$ Then $$B^T = \begin{bmatrix} 3 & -2 \\ 0 & 1 \\ 5 & 4 \end{bmatrix}.$$
Example 3: Using Properties
If $$C = \begin{bmatrix} 1 & 2 \\ 3 & 4 \end{bmatrix}, \quad D = \begin{bmatrix} 0 & 5 \\ -1 & 2 \end{bmatrix},$$ then $$(C + D)^T = C^T + D^T.$$ You can verify this by computing both sides.
Calculator
Transposing a matrix
- Transposing a matrix can be done with the $\operatorname{transpose}()$ function:
transpose([1,2;3,4])
Hermitian transpose
- It is also possible to use the single quote operator to transpose a matrix.
- This calculates the Hermitian transpose of a matrix.
- When all entries are real numbers, it is identical to a regular transpose:
[1,2;3,4]'
Exercises
- Compute the transpose of $$A = \begin{bmatrix} 4 & 2 \\ -1 & 3 \end{bmatrix}.$$
- Let $$B = \begin{bmatrix} 1 & 0 & -2 \\ 5 & 3 & 4 \end{bmatrix}.$$ Compute $B^T$.
- True or false: If $A$ is $2 \times 3$, then $A^T$ is $3 \times 2$.
- Compute $(A + C)^T$ for $$A = \begin{bmatrix} 2 & 1 \\ 0 & -3 \end{bmatrix}, \quad C = \begin{bmatrix} -1 & 4 \\ 5 & 2 \end{bmatrix}.$$
- Compute $(AB)^T$ for $$A = \begin{bmatrix} 1 & 2 \\ 3 & 0 \end{bmatrix}, \quad B = \begin{bmatrix} 4 & -1 \\ 2 & 5 \end{bmatrix}.$$ Then verify that $(AB)^T = B^T A^T$.
- Describe in words what the transpose does to the rows and columns of a matrix.
- Compute the transpose of $$D = \begin{bmatrix} 7 \\ -2 \\ 5 \end{bmatrix}.$$